package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;


/**
 * SubgroupDTO entity. @author MyEclipse Persistence Tools
 */

public class CSSubgroupDTO extends java.lang.Object implements IsSerializable, ICSDTO {


    // Fields    

     private long id;
     private long subgroupTypeID;
     private long groupID;
     private String name;
     private Integer studentsNumber;


    // Constructors

    public CSSubgroupDTO(long id, long subgroupTypeID, long groupID,
			String name, Integer studentsNumber) {
		super();
		this.id = id;
		this.subgroupTypeID = subgroupTypeID;
		this.groupID = groupID;
		this.name = name;
		this.studentsNumber = studentsNumber;
	}


	/** default constructor */
    public CSSubgroupDTO() {
    }

    
    /** full constructor */


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}


	


	public long getSubgroupTypeID() {
		return subgroupTypeID;
	}


	public void setSubgroupTypeID(long subgroupTypeID) {
		this.subgroupTypeID = subgroupTypeID;
	}


	public long getGroupID() {
		return groupID;
	}


	public void setGroupID(long groupID) {
		this.groupID = groupID;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public Integer getStudentsNumber() {
		return studentsNumber;
	}


	public void setStudentsNumber(Integer studentsNumber) {
		this.studentsNumber = studentsNumber;
	}
	
	public String toString() {
		String result = "" +
			"[ " + CSSubgroupDTO.class + "]" +
			"id: " + id +
			", subgroupTypeID: " + subgroupTypeID +
			", groupID: " + groupID +
			", name: " + name +
			", studentsNumber: " + studentsNumber; 
		return result;
	}

//	public String toLabel() {
//		String r;
//		r = name + " (" + subgroupType.getName() + ", " + studentsNumber + ") " + group.toLabel();
//		return r;
//	}





}